package kr.hkit.powerjava.chapter07.Programming;

public class Movie {

	private String title, director;
	private int year;
	private double mark;

	Movie() {
	}

	public Movie(String title, String director, int year, double mark) {
		super();
		this.title = title;
		this.director = director;
		this.year = year;
		this.mark = mark;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public double getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

	@Override
	public String toString() {// print대신
		return "title=" + title + ", director=" + director + ", year="
				+ year + ", mark=" + mark ;
	}

}
